package com.sanley.piss.web.service.mapper;

import com.sanley.piss.model.IService;
import com.sanley.piss.model.po.Role;

import java.util.List;
import java.util.Map;

/**
 * Create By  on 2021/3/19.
 * @author 张凯大天才
 */
public interface IRoleService extends IService<Role> {
    List<Map<Integer,Object>> selectAllRoleNameAndId();

    void toRoleAuth(Integer roleId,Integer[] resourceId);

    void updateUserRole(Integer userId, Integer[] roleId);


    List<Map<Integer, Object>> selectRolesNameCodeIdByUserId(Integer userId);

    void updateAuth(Integer roleId,Integer[] resourceId);
}
